<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/system.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> OA数据库管理 <a href="__ACTION__">【刷新】</a></h1>
     </div>
     <div class="module_public_main">
        <table>
          <tr>
            <td colspan="6"><a href="__URL__/OA_DATABASES">【查看数据表/字段-注释信息】</a>&nbsp;<a href="__URL__/OA_sql">【SQL语句操作】</a>-><font color=red>技术人员操作</font></td>
          </tr>
          <tr>
            <td align="center" width="8%">编号</td>
            <td align="center">表名</td>
            <td align="center">数据量</td>
            <td align="center">有无备份文件</td>
            <td align="center">备份文件存放路径</td>
            <td align="center">操作</td>
          </tr>
          <?php if(is_array($t_info)): $k = 0; $__LIST__ = $t_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr>
              <td align="center"><?php echo ($k); ?></td>
              <td align="center"><?php echo ($v["Tables_in_oa"]); ?></td>
              <td align="center"><b style="color:red;"><?php echo ($v["sum"]); ?></b>条</td>
              <?php if($v["is_backup"] == '1'): ?><td align="center"><font color=green>√</font></td>
              <?php else: ?>
              <td align="center"><font color=red>x</font></td><?php endif; ?>      
              <td align="center">__PUBLIC__/Backup/<?php echo ($v["Tables_in_oa"]); ?>.txt</td>    
              <td align="center">
                <a href="__URL__/do_backup_table/tname/<?php echo ($v["Tables_in_oa"]); ?>">单表备份(结构+内容)</a> |
                <a href="__URL__/do_optimize/tname/<?php echo ($v["Tables_in_oa"]); ?>">单表优化</a> |
                <a href="__URL__/OA_look_desc/tname/<?php echo ($v["Tables_in_oa"]); ?>">查看表结构</a> |
                <a href="__URL__/do_del_tables/tname/<?php echo ($v["Tables_in_oa"]); ?>" onclick="if(confirm('确定要清空表数据吗?')){return true;}else{return false};" disabled="">清空表数据</a>
              </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
          <tr>
            <td bgcolor="#F0F0F0"></td>
          </tr>
        </table>
     </div>
  </div>
</body>
</html>